PROJECTENGRAM

REAL-TIME PROTOCOLS

Tags: #◇Computer Science #◇NSCOM01 #◇Conceptual #◇RTP #◇RTCP #◇RTSP


◇Overview

To support real-time multimedia over IP, specific application-layer protocols have been standardized. The Real-Time Transport Protocol (RTP) handles the actual delivery of media, while the Real-Time Control Protocol (RTCP) provides out-of-band statistics and control information. For streaming stored media like Video-on-Demand (VoD), the Real-Time Streaming Protocol (RTSP) provides remote control functionalities similar to a VCR.

◇Key Definitions

  • RTP (Real-Time Transport Protocol): Defines a standardized packet format for delivering audio and video.
  • RTCP (Real-Time Control Protocol): Works alongside RTP to monitor transmission statistics and Quality of Service (QoS).
  • RTSP (Real-Time Streaming Protocol): A network control protocol designed for use in entertainment and communications systems to control streaming media servers.
  • SSRC (Synchronization Source ID): A 32-bit unique identifier for the source of an RTP stream.

◇Theoretical Framework / Core Concepts

Real Time Protocol (RTP)

  • RFC: 3550
  • Architecture: RTP sits between the application and the transport layer in end systems. It is typically encapsulated in UDP segments.
  • Limitation: RTP does not provide QoS guarantees. Routers treat RTP packets identically to regular IP/UDP traffic; it relies on the application to handle jitter and loss.

RTP Header Fields:

  1. Payload Type (7 bits): Indicates the encoding format (e.g., 0 = PCM mu-law, 33 = MPEG2 video). Encodings can change dynamically mid-stream.
  2. Sequence Number (16 bits): Increments by 1 for each packet. Allows the receiver to detect missing packets and restore packet order.
  3. Time Stamp (32 bits): Reflects the sampling instant of the first byte in the packet. Critical for jitter buffering and smooth playout.
  4. SSRC (32 bits): Uniquely identifies the stream source.

Real-Time Control Protocol (RTCP)

RTCP periodically sends control packets to all participants in a session to report network health and statistics.

RTCP Packet Types:

  1. Receiver Reports: Details the fraction of lost packets, last sequence number received, and interarrival jitter.
  2. Sender Reports: Details the SSRC, current wall-clock time, total packets sent, and total bytes sent.
  3. Source Description: Maps the SSRC to a human-readable identifier (e.g., name or email).

Key Features of RTCP:

  • Stream Synchronization: Ties relative RTP timestamps to an absolute "wall-clock" time, allowing receivers to sync audio and video streams (e.g., lip-syncing).
  • Bandwidth Scaling: RTCP traffic is strictly limited to 5% of the total session bandwidth to prevent control overhead from overwhelming the network (75% allocated to receivers, 25% to the sender).

Real Time Streaming Protocol (RTSP)

  • RFC: RFC 2326
    RTSP acts as a network remote control for media servers, enabling "Internet VCR" features like pause, rewind, and fast-forward for Video-on-Demand.

Architecture Workflow:

  1. Browser requests a meta file from a Web Server via HTTP.
  2. Browser passes the meta file to a Media Player.
  3. Media Player opens an out-of-band RTSP connection with the Media Server to send commands.
  4. Media (audio/video) streams over a separate, in-band RTP connection.

Common RTSP Methods:

  • SETUP: Allocates resources for a stream.
  • PLAY: Starts data transmission.
  • PAUSE: Temporarily halts the stream.
  • RECORD: Initiates recording on the server.
  • TEARDOWN: Frees resources and closes the session.

◇Summary & Key Takeaways

  • RTP provides sequence numbering, timestamps, and payload identification for real-time media but offers no QoS guarantees.
  • RTCP provides vital statistics and enables stream synchronization, carefully limiting its bandwidth footprint to 5%.
  • RTSP operates out-of-band to provide VCR-like controls for streaming media servers.

◇References & Navigation

CONFIRMATION // 理解度の確認

ACTIVE RECALL VERIFICATION

Select an answer to verify conceptual comprehension and reveal the technical rationale.

Q1

Which protocol is responsible for actually carrying the audio and video payload in VoIP?

Q2

Does RTP provide Quality of Service (QoS) guarantees to ensure timely delivery?

Q3

Which RTP header field allows the receiver to detect packet loss?

Q4

What is the purpose of the RTP Time Stamp?

Q5

Which RTCP packet type details the fraction of packets lost and average jitter?

Q6

How does RTCP enable the synchronization of separate audio and video streams?

Q7

What percentage of the total session bandwidth is RTCP control traffic limited to?

Q8

What is the primary function of RTSP?

Q9

How are RTSP control messages and the actual media streams separated?

Q10

Which of the following is a valid RTSP method?

Real-Time Protocols | PROJECT ENGRAM